home *** CD-ROM | disk | FTP | other *** search
- /*
- * CBLibrary - FilePerc
- * Copyright (C) 2003 Chris Bazley
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
- /*
- Displays % hourglass and watches for ESCAPE during file operations
- Applications using this component need all the messages required by
- FedCompMT and/or LoadSaveMT, plus "Escape".
- */
-
- #ifndef FilePerc_h
- #define FilePerc_h
-
- /* RISC OS library files */
- #include "kernel.h"
- #include "flex.h"
-
- #define FILEPERC_OP_LOAD 1
- /* if file_type b31 set (load as sprite area) then pre-pend length word) */
- #define FILEPERC_OP_SAVE 2
- /* if file_type b31 set (save as sprite file) then strip 1st word) */
- #define FILEPERC_OP_DECOMP 3
- #define FILEPERC_OP_COMP 4
-
- extern _kernel_oserror *perc_operation(int type, const char *file_path, unsigned int file_type, flex_ptr buffer_anchor);
-
- #endif
-